Micron Document
🎖️GitЯра🎖️

Node / meshtastic / Meshtastic-Android / files / core / ble / src / commonMain / kotlin / org / meshtastic / core / ble / ActiveBleConnection.kt

Displaying Raw • Download

core/ble/src/commonMain/kotlin/org/meshtastic/core/ble/ActiveBleConnection.kt f07624be882e679affc02931dc75e8cb1594de18 (f07624be) Text, 1.24 KB

T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.ble

Tff7b72import T7ee787com.juul.kable.Peripheral
Tff7b72import T7ee787kotlin.concurrent.Volatile

T8b949e/**
* A simple global tracker for the currently active BLE connection. This resolves instance mismatch issues between
* dynamically created UI devices (scanned vs bonded) and the actual connection.
*
* Fields are volatile to ensure visibility across AIDL binder threads and coroutine dispatchers.
*/
Tff7b72internal Tff7b72object T56d364ActiveBleConnection Tb4b4b4{
Tf0883e@Volatile Tff7b72var Te6edf3activePeripheralTb4b4b4: Te6edf3Peripheral? Tff7b72= Tff7b72null

Tf0883e@Volatile Tff7b72var Te6edf3activeAddressTb4b4b4: Tffa657String? Tff7b72= Tff7b72null
Tb4b4b4}

Served by rngit 1.5.0 - Generated in 0.04s